USE [BMIG_Mensual_POST_CADENA]
GO

/****** Object:  StoredProcedure [dbo].[WASP_M0013_DROP_CREATE]    Script Date: 11/24/2011 11:38:12 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID('WASP_M0013_DROP_CREATE') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[WASP_M0013_DROP_CREATE]
GO

USE [BMIG_Mensual_POST_CADENA]
GO

/****** Object:  StoredProcedure [dbo].[WASP_M0013_DROP_CREATE]    Script Date: 11/24/2011 11:38:12 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE [dbo].[WASP_M0013_DROP_CREATE] AS
BEGIN
    if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[AS_cabecera_produccion_UF]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
    drop table [dbo].[AS_cabecera_produccion_UF]
    
    SELECT * 
    INTO dbo.AS_cabecera_produccion_UF
    FROM dbo.cabecera_produccion_cabecera
  
END
	
	
GO


